package com.jvm;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;

public class Math {

    public static final int initData = 666;
    public static User user = new User();
    public int i = 6;

    static {
        System.out.println(initData);
        System.out.println("静态大括号");
    }

    {
        System.out.println("大括号");
        System.out.println(i);
    }

    public int compute() {  //一个方法对应一块栈帧内存区域
        int a = 1;
        int b = 2;
        int c = (a + b) * 10;
        return c;
    }

    public static void main(String[] args) {
        Map map  = new HashMap();
        for (int i = 1; i <12 ; i++) {
            map.put(i, i);
            System.out.println(i);
        }

        System.out.println("-------------->");

        ConcurrentSkipListMap concurrentSkipListMap = new ConcurrentSkipListMap();

        Math math = new Math();
        math.compute();
        System.out.println("结束");
        System.out.println(Math.class.getClassLoader());


    }

}
